using UnityEditor;
using UnityEngine;

namespace Gameplay.PVE.Editor
{
    [CustomEditor( typeof(RpgBattleSceneEnemyPath))]
    public class RpgBattleSceneEnemyPathInspector : UnityEditor.Editor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            if (GUILayout.Button("添加路点"))
            {
                (target as RpgBattleSceneEnemyPath).AddPoint();
            }

            if (GUILayout.Button("贴地"))
            {
                (target as RpgBattleSceneEnemyPath).AttachGround();
            }
        }
    }
}